<div style="height:600px; position: relative ">

    <!--<div class="mb20">-->

        <!--<a role="button" ng-click="exportExcel()" class="btn btn-primary" >导出EXCEL</a>-->
        <!--<div class="dib">-->
            <!--<input type="text" ng-model="search.name" class="form-control dib mdw" >-->
            <!--<a role="button" ng-click="searchName(search.name)"  class="btn btn-primary">搜索</a>-->
        <!--</div>-->
    <!--</div>-->

    <table class="table table-striped table-condensed table-bordered table-hover">
        <thead>
        <tr style="background-color: #0081c2; color: #FFFFFF">
            <td>退款订单号</td>
            <td>退款商品</td>
            <td>退款原因</td>
            <td>退款时间</td>
            <td>退款经手人</td>
            <td>退款账户</td>
            <td>退款金额</td>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="model in models">
            <td>{{model.orderNo}}</td>
            <td>
                <div  ng-if="model.state >= 6">
                <p ng-repeat="p in model.production" ng-bind="p.name"></p>
                </div>
                <div  ng-if="model.state < 6">
                    <p ng-if="p.refund" ng-repeat="p in model.production" ng-bind="p.name"></p>
                </div>
            </td>

            <td>
                <div  ng-if="model.state >= 6">
                    {{model.refund.reason}}
                </div>
                <div  ng-if="model.state < 6">
                    <p ng-if="p.refund" ng-repeat="p in model.production" ng-bind="p.refund.reason"></p>
                </div>
            </td>

            <td>
                <div  ng-if="model.state >= 6">
                    {{model.refund.createdAt | date:'yyyy-MM-dd HH:mm' }}
                </div>
                <div  ng-if="model.state < 6">
                    <p ng-if="p.refund" ng-repeat="p in model.production">  {{p.refund.createdAt | date:'yyyy-MM-dd HH:mm' }}</p>
                </div>
            </td>

            <td>
                <div  ng-if="model.state >= 6">
                    {{model.refund.handler }}
                </div>
                <div  ng-if="model.state < 6">
                    <p ng-if="p.refund" ng-repeat="p in model.production">  {{p.refund.handler}}</p>
                </div>
            </td>

            <td>
                <div  ng-if="model.state >= 6">
                    {{model.refund.account }}
                </div>
                <div  ng-if="model.state < 6">
                    <p ng-if="p.refund" ng-repeat="p in model.production">  {{p.refund.account}}</p>
                </div>
            </td>

            <td>
                <div  ng-if="model.state >= 6">
                    {{model.refund.cost}}
                </div>
                <div  ng-if="model.state < 6">
                    <p ng-if="p.refund" ng-repeat="p in model.production">  {{p.refund.cost}}</p>
                </div>
            </td>





        </tr>




        </tbody>
    </table>


    <h4  ng-if="models.length==0">暂无数据</h4>



    <div style="position: absolute; bottom: 0px" paging
         page= search.pageNo
         page-size= search.pageSize
         total= total
         paging-action = "paging(page)">
    </div>
</div>
